<template>
	<div>

		<el-card>
{{aa}}

			<el-table v-loading="loading" :data="list.data" height="700" border style="width: 100%;margin-top: 20px;">
				<el-table-column prop="time" label="日期">
					<template slot-scope="scop">
						{{$formatDate(scop.row.time)}}
					</template>
				</el-table-column>
				
				<el-table-column prop="nickname" label="用户">
				</el-table-column>
				
				<el-table-column label="图片">
					<template slot-scope="scop">
						<el-image style="width: 50px; height: 50px" :src="$linkUrl(scop.row.avatar)" fit="fit">
						</el-image>
					</template>
				</el-table-column>
				
				
				<el-table-column prop="vip" label="会员">
				</el-table-column>
				
				
				<el-table-column prop="integral" label="积分">
				</el-table-column>
				
				<el-table-column prop="mobile" label="手机号">
				</el-table-column>
				
				
				
			</el-table>
			<div style="margin-top: 20px;"></div>
			<Pagination :total="list.total " @SizeChange='SizeChange' @CurrentChange='CurrentChange' />
		</el-card>




	</div>
</template>

<script>
	import Pagination from '@/components/pagination';
	export default {
		components: {
			
			Pagination
		},
		data() {
			return {
				list: [],
				size: 10,
				page: 1,
				loading: true,
				
			};
		},

		created() {
			this.jiazai()
		},
		methods: {
		
			SizeChange(e) {
			
				this.size = e.size;
				this.page = e.page;
				this.jiazai()
			},
			CurrentChange(e) {
				
				this.size = e.size;
				this.page = e.page;
				this.jiazai()
			},
		
			jiazai() {
				this.axios.post("/admin/user/findUesr", {
					page: this.page,
					size: this.size,
				}).then(res => {
					this.list = res;
					this.loading = false;
				}).catch(error => {

				})
			},

		}
	};
</script>


<style>


</style>
